

package com.maoshi.shop.distribution.comment.model;

import com.maoshi.shop.distribution.comment.vo.DistributionBindSetRobVO;
import com.maoshi.shop.distribution.comment.vo.DistributionBindSceneVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;

@Data
@TableName( "tz_distribution_bind_set")
public class DistributionBindSet implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 绑定条件设置表
     */
    @TableId
    private Integer bindId;

    /**
     * 店铺id
     */

    private Long shopId;

    /**
     * 业绩归属(0 允许绑定,关系优先,1,不绑定 分享人优先)
     */
    private Integer attribution;

    /**
     * 抢客方式(json)
     */
    private String robJson;

    /**
     * 保护天数(-1 永久保护 0不保护)
     */
    private Integer protectDay;

    /**
     * 绑定场景(json)
     */
    private String bindSceneJson;

    /**
     * 绑定天数(-1 永久)
     */
    private Integer bindDay;

    /**
     * 状态(0启用 1禁用)
     */
    private Integer state;

    /**
     * 修改时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 修改人
     */
    private Long modifier;

    /**
     * 绑定场景
     */
    @TableField(exist = false)
    private DistributionBindSceneVO bindScene;

    /**
     * 抢客方式
     */
    @TableField(exist = false)
    private DistributionBindSetRobVO rob;

}
